<?php

/**
 *
 * @author EADeveloper
 */
class BoSecurity extends easoftwarebussinesobject {

    /**
     *
     * @param type $name
     * @return \name 
     */
    public static function getMe($name = "BoSecurity") {
        return easoftwarebussinesobject::getMe($name);
    }

    public function registrarAccion($action = "vacia", $desc = "NA") {
        if (isset($_SESSION[USUARIO])) {
            $usr = AppSecurity::$UserData["usuario"];
            $ip = $_SERVER['REMOTE_ADDR'];
            $exp = $_SERVER['HTTP_USER_AGENT'];
            $sql = sprintf("INSERT INTO kairos_app_user_log
                        (FECHA, USUARIO, ACCION, DESCRIPCION, IPCLIENTE, EXPLORADOR) 
                        VALUES (NOW(), '%s', '%s', '%s', '%s', '%s');", $usr, $action, $desc, $ip, $exp);
            $this->execute($sql);
        }
    }

}

?>
